def countLetters(s):
    n = 0
    for c in s:
        if c.isalpha():
            n += 1

    return n

s = input("请输入字符串")
print(countLetters(s))